<?php

namespace maoxuner\LaravelJsonRpc\Exceptions;

/**
 * The JSON sent is not a valid Request object.
 */
class RequestException extends RpcException
{
    protected $message = 'Invalid Request';

    protected $code = -32600;

    public static function build(array $data): static
    {
        return (new static)->fill($data);
    }
}
